package com.rc.saas.mini.common.constant;

/**
 * Created by sven on 2018-02-22 11:58
 */
public interface HttpConstant {
    String OS_TYPE = "OS_TYPE";
    String IOS = "IOS";
    String ANDROID = "ANDROID";
    String CONTENT_TYPE_JSON = "application/json;charset=UTF-8";
    String AUTHORIZATION_PREFIX = "Bearer ";

    //app的token
    String SESSION_APP_TOKEN = "session_app_token";

    //wecaht的token
    String SESSION_WECHAT_TOKEN = "session_wechat_token";

    //mini的token
    String SESSION_TOKEN = "SESSION_TOKEN";

    int STATUS_SUCCESS = 200;
    int STATUS_FAIL = 500;
    int STATUS_FAIL_LOGIN = 403;

    //用户余额不足，请充值后再充电
    int FAIL_CODE_501 = 501;
    //上次订单还没结算完，请稍等
    int FAIL_CODE_502 = 502;

    // String SESSION_MOBILE = "sessionMemberMobile";
    // String SESSION_MEMBER_ID = "sessionMemberId";
    // String SESSION_OPERATOR = "sessionOperator";
    // String SESSION_LOGININFO = "sessionLoginInfo";

    //String SESSION_PREFIX_LOGIN = "saas_login";
    // String sessionRegisterPrefix = "register";
    //String sessionBindPrefix = "bindPhone";
    //String sessionResetPrefix = "resetPassword";
    // String sessionChangeBindPrefix = "changeBindPhone";
    String personal = "/personal/";

    String STATUS_ZERO = "0";
    String STATUS_ONE = "1";
    String STATUS_TWO = "2";

    //充电服务器域名,DOMAIN1,DOMAIN2
    String STD_DOMAIN = "STD_DOMAIN";
    String ZC_DOMAIN = "ZC_DOMAIN";

    //token有效期（小时）:7天
    // int DEFAULT_REDIS_EXPIRES_HOUR = 168;

    //存放Authorization的header字段
    String AUTHORIZATION = "authorization";
    //String OPERATOR = "operator";

    String EXCEPTION_CODE_500 = "500";
    String EXCEPTION_CODE_600 = "600"; // session过期

    String MOBILE_REGEX = "^1[3-9]\\d{9}$"; //手机正则表达式
    String MEMBER_PASSWORD_REGEX = "^[a-z0-9A-Z]+$"; //会员密码规则正则表达式

    //车牌匹配表达式
    String CAR_NUMBER_REGEX = "^([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[a-zA-Z](([A-Z]((?![IO])[a-zA-Z0-9](?![IO]))[0-9]{4})|([0-9]{5}[A-Z]))" +
            "|[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1})$";

    //String SOCKETIO_BROADCAST_EVENT = "BROADCAST_EVENT"; //广播事件
}
